package com.jd.ty.web.filter;

import com.jd.ty.dao.constant.QueryConstants;
import com.jd.ty.dao.constant.QueryConstants.Dictionary;
import com.jd.ty.util.CharacterEncodingUtil;
import com.jd.ty.util.Filter;

public class DictionaryFilter extends Filter {

	private Item parentCode     = new Item(Dictionary.PARENT+'.'+Dictionary.CODE, null, QueryConstants.EQ);
	private Item dictionaryName  = new Item(Dictionary.DICTIONARY_NAME, null,QueryConstants.LIKE);
	
	public String getParentCode() {
		return parentCode.getValue().toString();
	}
	
	public void setParentCode(String value) {
		parentCode.setValue(value);
	}
	
	public String getDictionaryName() {
		return (String) dictionaryName.getValue();
	}
	public void setDictionaryName(String value) {
		this.dictionaryName.setValue(CharacterEncodingUtil.iso2utf8(value));
	}
}
